import sys
import pygame
import random
from pygame.locals import *

pygame.init()
# 屏幕
width  =640
height =640
screen = pygame.display.set_mode([width, height])
pygame.display.set_caption('滑雪游戏')
screen.fill((255, 255, 255))
cfont = pygame.font.Font('./font/simkai.ttf', width//20)
title = cfont.render(u'滑雪游戏', True, (255, 0, 0))
trect = title.get_rect()
trect.midtop = (width/2, height/10)
screen.blit(title, trect)
pygame.display.update()
while True:
    for event in pygame.event.get():
        if event.type == QUIT:
            pygame.quit()
            sys.exit()
# 更新屏幕
	pygame.display.flip()